

<?php
//字符串函数
 //strlen 计算字符串长度
$s="计算机0Aa";
echo strlen($s),"\n";
// ord首字节编码
echo ord(0123),"\n";// 48
//substr 取子串
echo substr($s,9),"\n";// 0Aa
echo substr($s,6,5),"\n";//机0A
//p
printf("my name is %s, I'm %d years old.\n","zhangsan",18);
printf("[%d][%5d][%-5d][%0d][%x][%04x] \n",26,26,26,26,);